//*********************************************************************
//  Book.java  Java Foundations
//
//  Represents a book. Used as the parent of a derived class to
//  demonstrate inheritance.
//*********************************************************************

public class Book
{
   protected int pages = 2000;

   //------------------------------------------------------------------
   // Pages mutator.
   //------------------------------------------------------------------
   public void stePages (int numPages)
    { 
       pages = numPages;
    }
   //-------------------------------------------------------------
   // Pages accessor.
   //-------------------------------------------------------------
   public int getPages ()
   {
     return pages;
   }
}
